{# src/Acme/StoreBundle/Resources/views/Security/login.html.twig #}

{% extends '::admin_base.html.twig' %}

{% block body %}
    
    <div class="container">
        <div class="row">
            <div class="col-md-4 col-md-offset-4">
                <div class="login-panel panel panel-default">
                    <div class="panel-heading">
                        <h3 class="panel-title">Please Sign In</h3>
                    </div>
                    <div class="panel-body">
                        {% if error %}
                            <div>{{ error.message }}</div>
                        {% endif %}
                        <form role="form" action="{{ path('login_check') }}" method="post">
                            <fieldset>
                                <div class="form-group">
                                    <input placeholder="Username" class="form-control" type="text" id="username" name="_username" value="{{ last_username }}" autofocus>
                                </div>
                                <div class="form-group">
                                    <input class="form-control" placeholder="Password" type="password" id="password" name="_password" value="" />
                                </div>
                                <div class="checkbox">
                                    <label>
                                        <input name="remember" type="checkbox" value="Remember Me">Remember Me
                                    </label>
                                </div>
                                <!-- Change this to a button or input when using this as a form -->
                                <button type="submit" class="btn btn-lg btn-success btn-block">login</button>
                            </fieldset>
                        </form>
                    </div>
                </div>
            </div>
        </div>
    </div>

{% endblock %}